public class Outer {
    int b=20;
    public void show() {
        final int a = 10;

        class Inner {
            String name;
            int age;

            public void method1() {
                System.out.println("局部内部类");
                System.out.println(b);
            }
        }
        Inner i=new Inner();
        System.out.println(i.name);
        System.out.println(i.age);
        i.method1();
    }
}
